package li;

public class test {
    public static void main(String[] args) {
       teacher t1= new teacher();
       t1.setName("张三");
       t1.setAge(28);
        System.out.println(t1.getName()+":"+t1.getAge());
        teacher t2= new teacher("李四",16);
        System.out.println(t2.getName()+":"+t2.getAge());
        teacher t3= new teacher("王五",26);
        System.out.println(t3.getName()+":"+t3.getAge());
        teacher t4= new teacher("赵六",18);
        System.out.println(t4.getName()+":"+t4.getAge());
      int [] arr={28,16,26,18};
        int sum=0;
        for (int i = 0; i < arr.length ; i++) {
            sum+=arr[i];
        }
        int avg=sum/4;
        System.out.println(avg);



    }

}
